package io.xdag.utils;

public class DateUtils {



	/**
	 * 获取时间戳1/1024秒
	 * @return
	 */
	public static long getTimestamp(){
		long start= System.nanoTime();
		long sec = System.currentTimeMillis();
//		System.out.println(sec);
		long end = System.nanoTime()-start;
		long setp1 = (sec/1000);
		long setp2 = setp1*1000;
		long usec =Long.parseLong((sec-setp2)+String.valueOf(end).substring(0, 3));
		long timestamp = setp1 << 10 | ((usec << 10) / 1000000);
		return timestamp;
	}
	
	public static void main(String[] args) {
		System.out.println(getTimestamp());
	}
}
